﻿using Exam.infranstuctrue.Dto.Request.Error;
using Exam.infranstuctrue.Tools.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Exam.Service.Interface
{
    [IProvider]
    public interface IErrorService
    {
        /// <summary>
        /// 记录异常
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        void AddError(ErrorDto dto);

        /// <summary>
        /// 记录日志
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        void AddActionLog(ErrorDto dto);
    }
}
